package com.yueze.demo1.service.impl;

import com.yueze.demo1.dao.UserMapper;
import com.yueze.demo1.entities.User;
import com.yueze.demo1.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author Administrator
 * @create 2020-08-08
 * 14:58
 * @desc
 **/
@Service
public class UserServiceImpl implements UserService {

    @Resource
    private UserMapper userMapper;

    @Override
    public User login(User user) {
        System.out.println("==========================");
        System.out.println(user);
        return userMapper.login(user);
    }

    @Override
    public int register(User user) {
        return userMapper.register(user);
    }
}
